﻿@using Kugar.Core.BaseStruct
@using Kugar.Core.ExtMethod
@using Kugar.MVC.MobileUI.WeUI.Enum
@using Kugar.MVC.MobileUI.WeUI.Helpers
@using Kugar.MVC.MobileUI.WeUI.Helpers.Forms

@{
    ViewBag.Title = "ModalTest";
}

@using (WebUI.CommonCtrl().Modal()
    .Title("测试")
    .ID("divModalTest")
    .HideOnClickMask()
    .AddButton(x=>x.Type(ButtonTypeEnum.Submit).Text("保存"))
    .Render()
    )
{
    using (var frm=WebUI.Form().Ajax().UpdateElementID("divModalTest").Render())
    {
        @frm.AddTextBox().Label("lll").Name("ssss" ).Value(RandomEx.Next().ToStringEx()).Render()
    }

}